﻿using BusinessEntity;
using BusinessRepository;
using learun.util;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace BusinessRule
{
   public class CsRule
    {
        public async Task<string> GetCS()
        {
           string strid = CommonHelper.GetUniqueId().ToString();



           var vars = await new RepositoryFactory().BaseRepository(ConfigHelper.GetConfig().dbConn, ConfigHelper.GetConfig().dbType).FindEntity<dynamic>("select * from ADataPower where id = '201306181438299651'");

            return JsonConvert.SerializeObject(vars);
        }
    }
}
